<!--<?php
print <<<EOT
-->


<!--
EOT;
foreach ($LEFT_MENU_ARY as $k=>$v) { 
    if ($menu_id == $k) { 
print <<<EOT

					<tr>
                      <td><a href="{$v['url']}"><img src="./images/nav/{$v['pic']}-active.gif" alt="{$v['name']}" name="jf_nav_menu_$k" width="150" height="20" id="jf_nav_menu_$k" border="0"></a></td>
                    </tr>



EOT;
	} else {
print <<<EOT


					<tr>
                      <td><a href="{$v['url']}" onMouseOver="MM_swapImage('jf_nav_menu_$k','','./images/nav/{$v['pic']}-over.gif',1)" onMouseOut="MM_swapImgRestore()"><img src="./images/nav/{$v['pic']}.gif" alt="{$v['name']}" name="jf_nav_menu_$k" width="150" height="20" id="jf_nav_menu_$k" border="0"></a></td>
                    </tr>


EOT;
	}
} 
print <<<EOT
--> 

                
     <script type="text/javascript">
     
    $(document).ready(function(){
    
 
    })
    

    
    
    //check form
    function checkForme()
    {    
    var comv=$("#company").val();
    var addv=$("#address").val();
    var citv=$("#city").val();
    var phov=$("#phone").val();
    var emav=$("#email").val(); 
    //var busv=$("#business").selected.va;
    var busv = form1.business[form1.business.selectedIndex].value;    
    var couv= form1.country[form1.country.selectedIndex].value;
    
   if(comv=="")
   {
      alert("Please enter your company name.")
      $("#company").focus(); 
      return false;

   }
   
    if(busv=="")
   {
    alert("Please select your business type.")
    $("#business").focus(); 
     return false;   
   }
    
   
   if(addv=="")
   {
      alert("Please enter your address.")
      $("#address").focus(); 
       return false;
   }
   
   if(citv=="")
   {
   
      alert("Please enter your city.")
      $("#city").focus(); 
       return false;
   }
   
    if(couv=="")
   {
    alert("Please select your conutry.")
    $("#country").focus(); 
       return false;   
   }
   
   if(phov=="")
   {
      alert("Please enter a valid phone number")
      $("#phone").focus(); 
       return false;
   
   }else if(IsPhones(phov))
   {
     alert("Please enter a valid phone number")
      $("#phone").focus(); 
       return false;
    
   }

   if(emav=="")
   {
      alert("Please enter a valid email")
      $("#email").focus(); 
       return false;
   
   }else if(!IsEmails(emav))
   {
     alert("Please enter a valid email")
      $("#email").focus(); 
       return false;
    
   }
   
    
        if(comv==""||addv==""||citv==""||phov==""||emav=="")
        {
            //alert("Please enter a content")  
            return false;
        }
        else 
        {    
           
           $("#form1").attr("action","register.php");
           $("#form1").submit(); 
        }
        
    }
    
    
    function IsPhones(thevalue)
    {
	        var number = /^\d{3}\s\d{3}\s\d{4}$|^\d{2,3}\s\d{3}\s\d{3}\s\d{4}$|^\d{3}-\d{3}-\d{4}$|^\d{2,3}-\d{3}-\d{3}-\d{4}$|^\d{10}$|^\d{12,13}$|^\d{3}\s\d{3}\s\d{4}\sext\s\d{1,4}$|^\d{2,3}\s\d{3}\s\d{3}\s\d{4}\sext\s\d{1,4}$|^\d{3}-\d{3}-\d{4}\sext\s\d{1,4}$|^\d{2,3}-\d{3}-\d{3}-\d{4}\sext\s\d{1,4}$|^\d{10}\sext\s\d{1,4}$|^\d{12,13}\sext\s\d{1,4}$/;
    		
          return number.exec(thevalue);
    }
    
    function IsEmails(thevalue)
    {
	    var email = /^[\w-\.]+@([\w-]+\.)+[\w-]{2,4}$/;
    		
	    return email.exec(thevalue);
    }

    
     </script>
               
               	 <div class="main_R">    
               	   <div class="l-tb"> 
                <div class="tb-top-logo">
           <img src="css/images/about_jansen_furniture.jpg" alt="" />
            </div> 
             <div class="right-pad">       
             
                        <table width="415" border="0" cellspacing="0" cellpadding="0" class="registerform">
                          <tr>                          
                            <td   align="left" valign="top">

<!--
EOT;
if ($register_is_ok) {
print <<<EOT
--> 

                            <div>
                            Thank you for filling out the form.<br/>
                            We will contact you as soon as possible.
                            </div>

<!--
EOT;
} else {
print <<<EOT
--> 

<!-- -->
                           
                            <form method="post" name="form1" id="form1" onSubmit="return CheckDealerInquiryForm(this);" >
		                    <table width="100%">
		                        <tr>
		                        <td height="20" colspan="3"></td>
		                        </tr>
		                        <tr>
		                            <td align="left" colspan="3">Complete the following in full if you are not currently registered with jans2en furniture.<br />
		                             We will contact you shortly. </td>
		                        </tr>
		                        <tr><td colspan="3"  height="10"></td>
		                        </tr>                        
		                        
		                        <tr>
		                            <td align="right" height="28">所在公司</td>
		                            <td width="5">:</td>
		                            <td align="left"><input type="text" name="dealerinquirycompany" id="company" class="form" size="30"> <span class="form_red">*</span></td>
		                        </tr>
		                        <tr>
		                            <td align="right" height="28">姓名</td>
		                             <td>:</td>
		                            <td align="left"><input type="text" name="dealerinquiryfirstname"  class="form" size="30"></td>
		                        </tr>
		                       <!-- <tr>
		                            <td align="right" height="28">Last Name</td>
		                             <td>:</td>
		                            <td align="left"><input type="text" name="dealerinquirylastname" class="form" size="30"> <span class="form_red">*</span></td>
		                        </tr>-->
		                        <tr>
		                            <td align="right" height="28">企业类型</td>
		                             <td>:</td>
		                            <td align="left">
		                            <select name="dealerinquirybusinesstype" id="business" class="form">
									  <option value="" selected>---请选择---</option>
									  <option value="Importer">进口商</option>
									  <option value="Wholesaler">批发商</option>
									  <option value="Retailer">零售商</option>
									  <option value="Designer">设计师</option>
									  <option value="others">其他</option>
									</select>
		                            <!--<select name="dealerinquirybusinesstype" class="form">
									  <option value="" selected>---Please Select---</option>
									  <option value="Importer">Importer</option>
									  <option value="Wholesaler">Wholesaler</option>
									  <option value="Retailer">Retailer</option>
									  <option value="Designer">Designer</option>
									  <option value="others">Others</option>
									</select>-->
		                            </td>
		                        </tr>
		                       <!-- <tr>
		                            <td align="right" height="28">Years In Business</td>
		                             <td>:</td>
		                            <td align="left"><input type="text" name="dealerinquiryyearsinbusiness" class="form" size="30"></td>
		                        </tr>-->
		                        <tr>
		                            <td align="right" height="28">地址</td>
		                             <td>:</td>
		                            <td align="left"><input type="text" name="dealerinquiryaddress" id="address" class="form" size="30"> <span class="form_red">*</span></td>
		                        </tr>
		                        <!--<tr>
		                            <td align="right" height="28">Address 2</td>
		                             <td>:</td>
		                            <td align="left"><input type="text" name="dealerinquiryaddress2" class="form" size="30"></td>
		                        </tr>-->
		                        <tr>
		                            <td align="right" height="28">城市</td>
		                             <td>:</td>
		                            <td align="left"><input type="text" name="dealerinquirycity" class="form" id="city" size="30"> <span class="form_red">*</span></td>
		                        </tr>
		                        <!--<tr>
		                            <td align="right" height="28">State/Province</td>
		                             <td>:</td>
		                            <td align="left">
		                            <select name="stateid" class="form">
		                              <option value="" selected>---Please Select---</option>
		                              $state_select
		                            </select>
		                          </td>
		                        </tr>-->
		                        <tr>
		                            <td align="right" height="28">国家</td>
		                             <td>:</td>
		                            <td align="left">
		                            <select name="dealerinquirycountryid"  id="country" class="form">
										 <!-- <option value="" selected>---请选择---</option>-->
		                              <option value="256">中国</option>
		                             <!-- $country_select	-->
		                            </select> <span class="form_red">*</span>
		                            </td>
		                        </tr>
		                        <!--<tr>
		                            <td align="right" height="28">Zip/Postal Code</td>
		                             <td>:</td>
		                            <td align="left"><input type="text" name="dealerinquirypostal" class="form" size="30"></td>
		                        </tr>-->
		                        <tr>
		                            <td align="right" height="28">电话</td>
		                             <td>:</td>
		                            <td align="left"><input type="text" name="dealerinquiryphone" id="phone" class="form" size="30"> <span class="form_red">*</span></td>
		                        </tr>
		                       <!-- <tr>
		                            <td align="right" height="28">Fax</td>
		                             <td>:</td>
		                            <td align="left"><input type="text" name="dealerinquiryfax" class="form" size="30"></td>
		                        </tr>-->
		                        <tr>
		                            <td align="right" height="28">电邮</td>
		                            <td>:</td>
		                            <td align="left"><input type="text" name="dealerinquiryemail" id="email" class="form" size="30"> <span class="form_red">*</span></td>
		                        </tr>
		                        <!--<tr>
		                            <td align="right" height="28">Company Registration Number</td>
		                            <td>:</td>
		                            <td align="left"><input type="text" name="dealerinquiryregistrationnumber" class="form" size="30"></td>
		                        </tr>-->
		                        <tr>
		                            <td align="right" height="30">URL</td>
		                            <td>:</td>
		                            <td align="left"><input type="text" name="dealerinquiryurl" class="form" size="30"></td>
		                        </tr>
		                        <tr>
		                            <td align="right" valign="top" style="padding-top:3px">Where did you find us</td>
		                             <td valign="top" style="padding-top:3px">:</td>
		                            <td align="left" height="100"><textarea class="form area" name="find_us_content" cols="66" rows="4"></textarea></td>
		                        </tr>
		                       <!-- <tr>
		                            <td align="right" valign="top" style="padding-top:3px">Comments</td>
		                             <td valign="top" style="padding-top:3px">:</td>
		                            <td align="left" height="100"><textarea class="form area" name="comments" cols="66" rows="4"></textarea></td>
		                        </tr>-->
		                        <tr>
		                            <td align="right" valign="top" style="padding-top:3px">贵公司的信息</td>
		                            <td valign="top" style="padding-top:3px">:</td>
		                            <td align="left" height="100"><textarea class="form area" name="company_content" cols="66" rows="5"></textarea></td>
		                        </tr>
		                        <tr>		                        
		                         <td></td>
		                         <td></td>
		                         <td height="28" >
		                                <input type="hidden" name="act" value="register">
		                                <img src="css/images/jf_button_send.jpg"  onclick="checkForme()" style="cursor:pointer" />
		                                
		                               <!-- <input id="jf_button_send" type="image"    >&nbsp;-->
		                            </td>
		                        </tr>                        
		                    </table>
		                    <input type="hidden" value="CN" name="from" />
		                    </form>
		                    
		             

<!--
EOT;
}
print <<<EOT
-->  
		                        
                            </td>
              
                           
                            
                          </tr>                         
                          
                        </table>
                        </div>
                        </div>
                         <div class="r-tb">
                        <div class="rightimgwrap"><img src="{$img}" alt="" name=""  class="picture"/></div>
                 
                     </div>
      <!-- right -->
          
   	</div>
	</div>
              </div>   
          
        
<!--
EOT;
?>-->